﻿namespace ServerApp
{
    using System;
    using System.Collections.Generic;
    using System.Data.Objects;
    using System.Linq;
    using System.Text;

    public class SingleEntity
    {
       // private static InternetShopBaseEntities m_instance = null;

        public static InternetShopBaseEntities GetInstance()
        {
            /*If somebody else changed database using old model make crash.
            Thats why we need to create new each time

            if (m_instance == null)
            {
            m_instance = new InternetShopBaseEntities();
            }*/
                return new InternetShopBaseEntities();
        }
    }
}
